import axios from '@/untils/request'

/**
 *获取热门搜索
 * @param {Object} params {limit : 获取的条数}
 * @returns {AxiosPromise}
 */
export function getHotSerach () {
  return axios({
    url: 'search/hot'
  })
}

/**
 *搜索歌曲
 * @param {Object} params {keywords, limit , offset}
 * @returns {AxiosPromise}
 */
export function getSearchRes (params) {
  return axios({
    url: '/cloudsearch',
    params
  })
}
